<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가 
?>

<!-- 로그인 후 외부로그인 시작 -->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
	<tr>
        <td width="40%" class="txt14"><?=$nick?> 님</td><? if ($is_admin == "super" || $is_auth) { ?><a href="<?=$g4['admin_path']?>/"><img src="<?=$outlogin_skin_path?>/img/admin.gif" width="33" height="15" border="0" align="absmiddle"></a><? } ?>
        <td width="60%" align="right">
            <a href="<?=$g4['bbs_path']?>/member_confirm.php?url=register_form.php"><img src="../img/product/bt_join1.gif" width="83" height="22" hspace="3" border="0" /></a>
            <a href="<?=$g4['bbs_path']?>/logout.php"><img src="../img/product/bt_logout.gif" width="61" height="22" border="0" /></a>
        </td>
    </tr>
    <tr>
        <td height="30" colspan="2" class="txt12_g">
            <a href="javascript:win_memo();" style="display:inline-block;width:">쪽지(<span class="point"><?=$memo_not_read?></span>)</a>
            <a href="javascript:goMySearch('my_write');" style="display:inline-block;">내 게시물(<?=$my_write_count?>)</a>
            <a href="javascript:goMySearch('my_interest');">관심상품(<span id="viewInter"><?=$my_interest_count?></span>)</a>
        </td>
    </tr>
</table>

<form name="loginFrm" id="loginFrm" method="get" action="<?=$g4['bbs_path']?>/board_<?=$bo_table?>.php">
<input type="hidden" name="bo_table" id="bo_table" value="<?=$bo_table?>" />
<input type="hidden" name="bo_gubun" id="bo_gubun" />
<input type="hidden" name="param_data" id="param_data" />
<input type="hidden" name="param_data2" id="param_data2" />
</form>

<script type="text/javascript">
function goMySearch(str,param_data,param_data2){
	var f = document.loginFrm;

	if (param_data==null) param_data="";
	if (param_data2==null) param_data2="";
	$("#bo_gubun").val(str);
	$("#param_data").val(param_data);
	$("#param_data2").val(param_data2);
	//$("#loginFrm").action = "<?=$g4['bbs_path']?>/board_<?=$bo_table?>.php";
	$("#loginFrm").attr("action","<?=$g4['bbs_path']?>/board_<?=$bo_table?>.php");
	$("#loginFrm").submit();
}

// 탈퇴의 경우 아래 코드를 연동하시면 됩니다.
function member_leave() 
{
    if (confirm("정말 회원에서 탈퇴 하시겠습니까?")) 
            location.href = "<?=$g4['bbs_path']?>/member_confirm.php?url=member_leave.php";
}
</script>
<!-- 로그인 후 외부로그인 끝 -->
